<!--
 * Copyright TLR Team, Inc. All Rights Reserved.
-->
<div class="container-fluid" ng-if="userType === '0'">
    <!-- Page Heading -->
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header page-header2">
                健康数据
            </h1>
        </div>
    </div>
    <!-- /.row -->
    <div class="row fixed-buttons">
        <div>
            <div class="form-group fixed-button-panel">
                <button data-toggle="modal" data-target="#HeathUserModal" type="button"
                        class="btn btn-default"><i class="fa fa-edit hella-icon-offset"></i>编辑
                </button>
            </div>
        </div>
    </div>
    <div class="row" style="padding-top: 50px;">
        <div class="col-lg-12">
            <!-- Tab panes -->
            <div class="tab-content">
                <div role="tabpanel" class="tab-pane active" style="padding-top: 20px;">
                    <table class="table table-bordered table-hover" cellspacing="0" width="100%">
                        <thead class="tlr-table-header">
                            <tr>
                                <th>选择</th>
                                <th>设备号</th>
                                <th>姓名</th>
                                <th>电话</th>
                                <th>地址</th>
                                <th>健康得分</th>
                                <th>高血压</th>
                                <th>低血压</th>
                                <th>血糖</th>
                                <th>体温</th>
                                <th>脉搏</th>
                                <th>心率</th>
                            </tr>
                        </thead>
                        <tr ng-if="!healthUsers"><td colspan="10">正在加载数据 ...</td></tr>
                        <tr ng-if="healthUsers" ng-repeat="healthUser in healthUsers| orderBy:'point':reverse"
                            ng-click="onHealthUserSelect(healthUser)"
                            ng-class="{'tlr-table-row-selected':healthUser.deviceMac === editingHealthUser.deviceMac }">
                            <td><input type="checkbox" ng-checked="healthUser.deviceMac === editingHealthUser.deviceMac" disabled></td>
                            <td>{{healthUser.deviceMac}}</td>
                            <td>{{healthUser.name}}</td>
                            <td>{{healthUser.tel}}</td>
                            <td>{{healthUser.address}}</td>
                            <td>{{healthUser.point}}</td>
                            <td>{{healthUser.blood_pressure_high}}</td> 
                            <td>{{healthUser.blood_pressure_low}}</td> 
                            <td>{{healthUser.blood_suger}}</td>
                            <td>{{healthUser.temperature}}</td>
                            <td>{{healthUser.sphygmus}}</td>
                            <td>{{healthUser.heartbeat}}</td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <!-- /.row -->
    <ng-include src="'app/mvp/template/view/dashboard/form/health_user_form.html'"></ng-include> 
</div>